package com.etc.delivery.entity;

import org.springframework.stereotype.Component;

@Component
public class Waybill {


    private String waybillNo;

    private Integer mailType;

    private String senderName;

    private String senderPhone;

    private String senderAddress;

    private String recipientName;

    private String recipientPhone;

    private String recipientAddress;

    private String mailCost;

    private Integer status;

    private Integer warehouseId;
    private Integer driverId;


    @Override
    public String toString() {
        return "Waybill{" +
                "waybillNo='" + waybillNo + '\'' +
                ", mailType=" + mailType +
                ", senderName='" + senderName + '\'' +
                ", senderPhone='" + senderPhone + '\'' +
                ", senderAddress='" + senderAddress + '\'' +
                ", recipientName='" + recipientName + '\'' +
                ", recipientPhone='" + recipientPhone + '\'' +
                ", recipientAddress='" + recipientAddress + '\'' +
                ", mailCost='" + mailCost + '\'' +
                ", status=" + status +
                ", warehouseId=" + warehouseId +
                ", driverId=" + driverId +
                '}';
    }

    public Waybill(String waybillNo, Integer mailType, String senderName, String senderPhone, String senderAddress, String recipientName, String recipientPhone, String recipientAddress, String mailCost, Integer status, Integer warehouseId, Integer driverId) {
        this.waybillNo = waybillNo;
        this.mailType = mailType;
        this.senderName = senderName;
        this.senderPhone = senderPhone;
        this.senderAddress = senderAddress;
        this.recipientName = recipientName;
        this.recipientPhone = recipientPhone;
        this.recipientAddress = recipientAddress;
        this.mailCost = mailCost;
        this.status = status;
        this.warehouseId = warehouseId;
        this.driverId = driverId;
    }

    public Integer getDriverId() {
        return driverId;
    }

    public void setDriverId(Integer driverId) {
        this.driverId = driverId;
    }

    public Waybill() {
    }

    public String getWaybillNo() {
        return waybillNo;
    }

    public void setWaybillNo(String waybillNo) {
        this.waybillNo = waybillNo;
    }

    public Integer getMailType() {
        return mailType;
    }

    public void setMailType(Integer mailType) {
        this.mailType = mailType;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getSenderPhone() {
        return senderPhone;
    }

    public void setSenderPhone(String senderPhone) {
        this.senderPhone = senderPhone;
    }

    public String getSenderAddress() {
        return senderAddress;
    }

    public void setSenderAddress(String senderAddress) {
        this.senderAddress = senderAddress;
    }

    public String getRecipientName() {
        return recipientName;
    }

    public void setRecipientName(String recipientName) {
        this.recipientName = recipientName;
    }

    public String getRecipientPhone() {
        return recipientPhone;
    }

    public void setRecipientPhone(String recipientPhone) {
        this.recipientPhone = recipientPhone;
    }

    public String getRecipientAddress() {
        return recipientAddress;
    }

    public void setRecipientAddress(String recipientAddress) {
        this.recipientAddress = recipientAddress;
    }

    public String getMailCost() {
        return mailCost;
    }

    public void setMailCost(String mailCost) {
        this.mailCost = mailCost;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }
}
